/**
 * 测点管理
 * **/
import request from '../../utils/request'

export default {

  // 获取左侧树数据
  async getLeftTree(){
    return await request({url:'device/getDeviceTree'})
  },
  // 获取右侧数据
  async getRightData(params){
    return await request({url:'measurePoint/showMeasurePoints',params})
  },
  // 观察量新增
  async watchSave(data){
    return await request({url:'measurePointWatch/save',method:'post',data})
  },
  // 观察量更新
  async watchUpdate(data){
    return await request({url:'measurePointWatch/update',method:'post',data})
  },
  // 测量量新增
  async surveySave(data){
    return await request({url:'measurePointSurvey/save',method:'post',data})
  },
  // 测量量更新
  async surveyUpdate(data){
    return await request({url:'measurePointSurvey/update',method:'post',data})
  },
  // 抄表量新增
  async handwriteSave(data){
    return await request({url:'measurePointHandwrite/save',method:'post',data})
  },
  // 抄表量更新
  async handwriteUpdate(data){
    return await request({url:'measurePointHandwrite/update',method:'post',data})
  },

  // 查看测点
  async getPointInfo(params){
    return await request({url:'measurePoint/measurePointInfo',params})
  },
  // 删除测点
  async delete(params){
    return await request({url:'measurePoint/delete',params})
  },


}
